﻿
using Autodesk.Revit.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace component
{
    /// <summary>
    /// NavagationPage1.xaml 的交互逻辑
    /// </summary>
    public partial class NavagationPage1 : UserControl
    {
        
        public NavagationPage1()
        {
            //this.mainWindow = mainWindow;
            InitializeComponent();
        }
        public MainWindow mainWindow;
        
        //点击全部构件
        private void ShowAllComponents(object sender, RoutedEventArgs e)
        {
            components.Visibility = Visibility.Collapsed;
            Page1 page1 = new Page1();
            //page1.mainWindow = this.mainWindow;
            Page_Change.Content = new Frame()
            {
                Content = page1
            };
        }
        //点击菜单下建筑
        private void Click1(object sender, RoutedEventArgs e)
        {
            components.Visibility = Visibility.Collapsed;
            Page2 page2 = new Page2();
            Page_Change.Content = new Frame()
            {
                Content = page2
            };
        }
        //点击菜单下结构
        private void Click2(object sender, RoutedEventArgs e)
        {
            
            components.Visibility = Visibility.Collapsed;
            Page3 page3 = new Page3();
            Page_Change.Content = new Frame()
            {
                Content = page3
            };
        }
        //点击菜单下装饰
        private void Click4(object sender, RoutedEventArgs e)
        {
            components.Visibility = System.Windows.Visibility.Collapsed;
            Page4 page4 = new Page4();
            Page_Change.Content = new System.Windows.Controls.Frame()
            {
                Content = page4
            };
        }
    }
}
